/**
 * @author LKQ
 * @date 2022/2/28 13:46
 * @description
 */
public class Solution {
    public static void main(String[] args) {

    }
    public boolean makeEqual(String[] words) {
        int n = words.length;
        int[] cnt = new int[26];
        for (String word: words) {
            for (char c: word.toCharArray()) {
                cnt[c-'a']++;
            }
        }
        for (int num: cnt) {
            // 字符出现次数无法平分，返回false
            if (num % n != 0) {
                return false;
            }
        }
        return true;
    }
}
